Is it a sin to lie?
Yes. The Catechism defines a lie as speaking a falsehood with the intention of deceiving. A lie in itself is a venial sin, but it becomes mortal when it does grave injury to justice and charity.
Find confession times near youWhat the Church says
Catechism of the Catholic Church, paragraph 2482
“‘A lie consists in speaking a falsehood with the intention of deceiving.’”
Catechism of the Catholic Church, paragraph 2484
“If a lie in itself only constitutes a venial sin, it becomes mortal when it does grave injury to the virtues of justice and charity.”
In plain words
Paragraph 2482 gives the definition. Paragraph 2484 says a lie in itself is only a venial sin, but it becomes mortal when it does grave injury to the virtues of justice and charity.
What to do
If you have lied and it weighs on you, you can put it right with the person and take it to confession.