The president's role is largely ceremonial but as the custodian of the constitution, the president has played an important role in times of uncertainty, such as when a general election is inconclusive and a decision has to be made about which party is best placed to form a government.