He later had the Royal Marriages Act 1772 passed to prevent any descendant of George II marrying without the consent of the sovereign, a law which remained in effect until the passage of the Succession to the Crown Act 2013, which, in addition to several other modifications, limited the requirement to obtain royal consent to only the first six persons in line to the throne (rather than all descendants).
To prevent any descendant of George II from marrying without royal permission, he introduced the Royal Marriages Act 1772. This rule remained in place until the Succession to the Crown Act 2013 was enacted. The new law, alongside other modifications, limited the need for royal consent to only the first six individuals in line to the throne (rather than all descendants).