To choose deliberately - that is, both knowing it and willing it - something gravely contrary to the divine law and to the ultimate end of man is to commit a mortal sin. This destroys in us the charity without which eternal beatitude is impossible. Unrepented, it brings eternal death.
Source: Catechism of the Catholic Church (Vatican.va)