Perjury is the word used for a person that tells a lie while they are under oath (in a courtroom). Committing perjury is against the law, and can be punished with a jail or prison sentence.