The monomers, oligomers, and fibrils of amyloid-β inhibit the activity of mitoBKCa channels by a membrane-mediated mechanism.