Democracy produces a legitimate government through the following mechanisms:
Conduct of free and fair elections that ensure the accountability of the government and election of representatives to legislate and govern on behalf of people.
It enables open and public debate on legislations and policies.
Citizens have the right to be informed about the government and its functioning.
Legitimate implies one that is genuine and can be trusted.