Pope John Paul II, head of the Roman Catholic Church for more than a quarter century, died at his Vatican apartment.