An if-else statement is a fundamental control structure in programming that allows for conditional execution of code blocks based on boolean expressions. It enables decision-making in code by executing one block of code if a condition is true and another block if the condition is false.