Mary was likely around 12 to 14 years old when she married Joseph. According to ancient traditions and some apocryphal texts like the Protoevangelium of James, Mary was betrothed around this age, which was typical for Jewish girls at that time. There is also a tradition that Joseph was significantly older, possibly a widower, when he married Mary. Some accounts indicate he could have been in his late 20s or even older, though exact ages are not certain and vary among sources.