WebMacro is a framework for developing Java Servlets. It enforces a Model-View-Controller framework on a project allowing for a clean separation of concerns in the design. In particular, WebMacro keeps program source code absolutely separate from presentation HTML code.

WebMacro was initially created and designed by Justin Wells at Semiotek Inc. in the mid-2000, when the project was taken over by a team at SourceForge.