Second Division leaders Gretna knocked First Division St Johnstone out of the Scottish Cup with a goal from former Saint Steve Tosh at McDiarmid Park.
The midfielder struck after 12 minutes to give the visitors a deserved victory as they dominated throughout.
Kenny Deuchar's overhead kick left Tosh in plenty of space for a simple volley.
The visitors played excellent football, shutting the Perth side out of the game and the Saints were restricted to just one shot on target.
St Johnstone: Cuthbert, Anderson, Stanic, Stevenson, Rutkiewicz, James, Henry (Coyle 55), Fotheringham, Jackson (Dobbie 83), Scotland, Sheerin (Janczyk 69). Subs Not Used: Dyer, Paston.
Gretna: Main, Birch, McQuilken, Tosh, Townsley, Innes, McGuffie, Nicholls, Deuchar (Shields 90), Graham, Skelton. Subs Not Used: McBride, Grainger, Collins, Mathieson.
Booked: Innes, McGuffie.
Goal: Tosh 12.
Ref: I Brines