The Act of Settlement was passed to allow Protestant members of the House of Hanover to inherit the throne.
This document created the law that only Protestants could become rulers of Britain, following the Glorious Revolution when William III, Prince of Orange, overthrew James II of England along with his wife, Mary II.