A simple and five steps total synthesis of AmmosamideB has been developed. The tricyclic pyrroloquinoline in Ammosamides was constructed in one step based on Doebner–Miller reaction between 1,3-diamine-4,6-dinitrobenzene 8 and dimethyl-2-oxo glutaconate 9.