Gene‌ is the fundamental unit of heredity, composed of specific DNA (or RNA) sequences that encode functional molecules (e.g., proteins or RNAs) and govern traits.