The government consists of members of the political party that wins an election and has the majority of members in the House of Representatives. This party and/or its leader (the Prime Minister) select fellow parliamentarians to be the ministers who run departments such as the Department of Foreign Affairs. All ministers are members of Parliament and are therefore elected.
Although the government is formed in the House of Representatives, some ministers are senators. About two thirds of ministers are members of the House of Representatives, and about one third are senators.