After a failed offensive at Megray Hill on 15 June, James Gordon, Viscount Aboyne retreated to Aberdeen, but was split from the main body of his army: most of it was stranded on the other side of the River Dee, and between the two was James Graham, Earl of Montrose and his Covenanter army.