Deep linking works by assigning a unique URL or URI to each screen or piece of content within the app. When a user clicks on a deep link, the app is launched and the user is taken directly to the specified screen or content.