You define a route using the <Route> component inside <BrowserRouter>. The <Route> component takes a 'path' prop to match the URL and a 'component' prop to render the specified component when the URL matches the path.