Sansara is a constant wandering, a wheel of birth and death, a cycle of reincarnation to which all living beings, including divine beings, are subject.
After each incarnation, the next incarnation is chosen according to the accumulated karma (cause understood in terms of the law of cause and effect). Liberation from samsara is achieved by walking the noble eightfold path, which leads to nirvana.