Synthesis of biologically active heterocyclic derivatives with the related fused systems incorporating a long chain of a fatty compound was described via the reactions of 5-amino-N-octadecyl-1H-pyrazole-4-carboxamide 4 with appropriate reagents namely, enaminones, and β-diketones. Hydroxylation of the synthesized compounds using a number of moles of propylene oxide gave nonionic surface-active agents having a good solubility in water, easy to handle, good biodegradability and announced surface properties that revealed the importance of their applications in avoiding pollution problems, and making them safe for humans and the environment. The surface properties and antimicrobial activity of these compounds were investigated, which showed low toxicity, high efficiency in the surface and biological activities. Therefore, these compounds may be exhibit capable potential in industry applications and can be used in the manufacture of cosmetics, textiles, moderate emulsifiers, dyes, pesticides and drugs.