There is no fixed number of years of good credit required to secure a mortgage, but generally, lenders prefer to see at least 2-3 years of positive credit history. This includes a consistent record of on-time payments, low credit utilisation, and no recent negative marks such as defaults or bankruptcies. The more established and clean your credit history is, the better your chances of securing favourable mortgage terms.