Octadecanolide is an organic compound with the chemical formula C18H34O2. It is a cyclic ester or lactone, more specifically a macrolide.