In a parliamentary system, the most senior member of the majority party is the Prime Minister.
The Prime Minister acts as the Chief Executive of the Country in a parliamentary system, much like the President, and is elected from within the ranks of the Parliament.