The First Minister and the deputy First Minister are elected on a joint ticket. Under the St Andrews Agreement, the Leader of the largest party nominates the First Minister, and the leader of the next largest party that is in the other group nominates the deputy First Minister.