Refers to the basis or rationale for something.
La razón por la cual decidí mudarme es que quería un cambio en mi vida.
The reason why I decided to move is that I wanted a change in my life.
La razón por la que no vino es que tenía un compromiso ineludible.
The reason he didn't come is that he had an unavoidable commitment.