Nirvana is a Sanskrit word that means "blowing out" or "quenching" of the activity of the grasping mind and its related unease). In Buddhism, it is the supreme goal of certain meditation disciplines and marks the soteriological release from worldly suffering and rebirths in saṃsāra). Nirvana is part of the Third Truth on "cessation of dukkha" in the Four Noble Truths, and the "summum bonum of Buddhism and goal of the Eightfold Path").
Nirvana refers to the extinction of greed, ill will, and delusion in the mind, the three poisons that perpetuate suffering. It is what the Buddha achieved on the night of his enlightenment: he became completely free from the three poisons. In the Theravada tradition, nirvana is the way out of the endless cycle of rebirth and death known as samsara; it is a state that exists beyond space and time, impossible to describe. In Zen, Tibetan Buddhism, and other types of Mahayana Buddhism, the state of nirvana is synonymous with becoming a buddha, or realizing one’s innate buddhahood or buddhanature.
Nirvana is not an experience through the five senses or the judgments of the thinking mind. It is a return to the state of Being that underlies all the conditioning to abide at Infinite Peace as Buddha Nature (Unformed Consciousness/ Awareness). Basically, nirvana is the full realization of the emptiness of phenomena. In this realization, one is liberated from both the prison and the palace equally.
In summary, Nirvana is the ultimate goal of Buddhism, which refers to the extinction of greed, hatred, and delusion in the mind, leading to the cessation of suffering and rebirths in saṃsāra. It is a transformed state of personality characterized by peace, deep spiritual joy, compassion, and a refined and subtle awareness.