A 'stub' is a placeholder or a temporary implementation used in software development to simulate the behavior of complex components or systems. It allows developers to test and integrate parts of a system without needing the complete functionality in place, facilitating incremental development and testing.