Spain has a parliamentary monarchy system of government with a constitutional monarchy. The Spanish Constitution outlines three branches of government - the legislative, executive, and judicial branches. The legislative branch is a bicameral parliament called the Cortes Generales consisting of the Congress of Deputies and the Senate. The executive branch is headed by a prime minister who selects ministers. The judicial branch is headed by the Supreme Court and Constitutional Court which ensure laws are constitutional.