Their marriage took place in Kronborg Castle . The ceremony ended with James 's representative , George Keith , 5th Earl Marischal , sitting next to Anne on the bridal bed . On 20 August 1589 , Anne was married by proxy to James at Kronborg Castle , the ceremony ending with James 's representative , George Keith , 5th Earl Marischal , sitting next to Anne on the bridal bed .