A total synthesis of ageladine A has been achieved by exploiting a Pictet-Spengler-type condensation between 2-aminohistamine and 4,5-dibromo-2-formylpyrrole as the key step.