what was the name of the last piece Mozart wrote before he passed away?

The last piece Mozart wrote before he passed away was his "Requiem Mass in D Minor."

The last piece Mozart wrote before he passed away is known as "Requiem in D minor" (K. 626). However, it should be noted that Mozart passed away before completing the entire composition, and it was finished by his student, Franz Xaver Süssmayr, based on Mozart's sketches and instructions.