The politics of Trinidad and Tobago function within the framework of a unitary state regulated by a parliamentary democracy modelled on that of the United Kingdom of Great Britain and Northern Ireland, from which the country gained its independence in 1962. Under the 1976 republican Constitution, the monarch was replaced as head of state by a President chosen by an electoral college composed of the members of the bicameral Parliament, consisting of the Senate and the House of Representatives.