Nirvana is attained when an individual breaks free from samsara (the cycle of rebirth) by completely overcoming the three poisons: greed (lobha), hatred (dosa), and ignorance (moha). It marks the cessation of suffering (dukkha) and the end of karmic accumulation.