In July 1677 Gyldenløve captured the fortress at Marstrand and joined General Løvenhjelm, who marched into Bohuslen with the main Norwegian army and defeated an army of 8000 Swedes under General de la Gardie.