abstract: In this talk I will review some classification and rigidity results for Einstein metrics and Ricci solitons. In particular, I will present a new Bochner-type identity on four-dimensional Einstein manifolds and a very recent uniqueness result for compact shrinking Ricci solitons in dimension four.