Dancers and a 21-gun salute have marked the inauguration of Botswana's president, who is beginning a second term after the ruling party won an election last week.

President Ian Khama, a retired general and the son of independence leader Seretse Khama, was sworn in Tuesday by Botswana's chief justice. Khama wore the country's flag pinned to the lapel of his dark suit.

The ruling Botswana Democratic Party has dominated politics since independence from Britain in 1966, but it faced a tougher challenge from the opposition in the election on Friday.

Khama's deputy, the vice president, will be elected by the parliament when it sits for the first time on Wednesday.