According to Genesis, Jacob worked for Laban for 14 years to marry Rachel.
Jacob fled to the household of his uncle Laban after conflict with his brother Esau. There he met Laban’s younger daughter, Rachel, and agreed to serve Laban for seven years in exchange for permission to marry her. Genesis says Jacob loved Rachel so deeply that the seven years seemed to him like only a few days.
At the end of the period, Laban gave Jacob his older daughter Leah instead of Rachel, explaining that local custom did not permit the younger daughter to marry first. After completing Leah’s wedding week, Jacob married Rachel as well. He then agreed to serve Laban for another seven years.
The 14-year answer refers specifically to the service connected with Jacob’s marriages to Leah and Rachel. Genesis later describes Jacob working for Laban under a separate arrangement involving livestock, so the account contains additional years of service beyond those first 14. Jacob eventually left Laban with his wives, children, and possessions.