Resist compositions comprising nitrogen-containing organic compounds having a benzimidazole structure and a specific ether chain moiety have an excellent resolution, form precisely configured patterns with minimized roughness of sidewalls and are useful in microfabrication using electron beams or deep-UV light.