The ultimate goal is spiritual salvation, or moksha, a freeing from the cycle of rebirth.
Moksha is spiritual salvation and allows a freeing from the cycle of rebirth. 
Moksha imprisons you in a cycle of rebirth.