The 22-year-old beat German Hanfmann in a hard-fought contest that ended 7-6 (7/4), 6-3, 6-2 in favour of Alcaraz on Rod Laver Arena as the Spaniard moved into the third round.