DOCM is a variant of the DOC format that allows the execution of macros (small programs) embedded in the document. This can include task automation, data manipulation and other advanced features. DOCM files are useful for creating interactive and dynamic documents in Microsoft Word.