Since Drupal 8 and 9 are end-of-life, sites must first be upgraded to Drupal 10. This involves updating core, contributed modules, and custom code to remove deprecated APIs. Once the site is fully compatible with Drupal 10, it can be upgraded to Drupal 11 using Composer, followed by thorough testing.