The Supreme Court in Rwanda has the law against insulting the president after the law which was introduced last year was challenged.
The law states that anyone insulting President Paul Kagame faces between five and seven years in prison.
Challenging the law, Lawyer Richard Mugisha argued that it was unconstitutional as it undermined freedom of expression. He also argued that articles which criminalised adultery should be scrapped.
However, the supreme court ruled that the law should remain, due to the responsibility that the office holds. It also rejected the appeal challenging the law on adultery in Rwanda.
The same court ruled that a law which prohibits writing articles or drawing cartoons that humiliate MPs, ministers or other government officials should be annulled.