The purpose of the UPC is to provide a comprehensive set of laws and procedures for the administration of an estate after a person's death. The code seeks to simplify the probate process, promote fairness and efficiency, and ensure that the decedent's property is distributed according to their wishes or the law. Additionally, the UPC aims to provide consistency and uniformity in probate laws across different states, thereby facilitating the administration of estates that have assets in multiple states.