An import statement is used in programming to include external modules or libraries into a program, allowing access to their functions and features. It ensures code reusability and modularity by enabling the incorporation of pre-written code, thereby saving time and reducing errors.