Narrative:

While cruising at assigned 6;000 MSL in heavy IMC with rain; my vacuum pump and auto pilot failed. A non pilot was in the right seat. While diagnosing the problem without the attitude indicator and auto pilot which is tied to the ai; I descended 1;000 ft then recovered back to 6;000. I was near [an] airport so I requested a diversion to land [there]. ATC accommodated and I descended to VFR and landed safely. In retrospect I should have reacted sooner to the ten degree banking of the ai; before it failed.

Google
 

Original NASA ASRS Text

Title: A Bonanza A36 pilot reported losing his vacuum pump in IMC; which led to autopilot and attitude indicator failure and an altitude excursion. He diverted to a nearby airport.

Narrative: While cruising at assigned 6;000 MSL in heavy IMC with rain; my vacuum pump and auto pilot failed. A non pilot was in the right seat. While diagnosing the problem without the attitude indicator and auto pilot which is tied to the AI; I descended 1;000 FT then recovered back to 6;000. I was near [an] airport so I requested a diversion to land [there]. ATC accommodated and I descended to VFR and landed safely. In retrospect I should have reacted sooner to the ten degree banking of the AI; before it failed.

Data retrieved from NASA's ASRS site as of April 2012 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.