The Yoga Sutras of Patanjali outline the eight limbs of yoga. Before meditation (dhyana), one must practice yamas (ethical restraints) and niyamas (observances/disciplines). These are the foundational steps that prepare the mind for deeper meditative practices. Hatha yoga focuses on physical postures, not the ethical foundation.