While dirt bikes are designed for off-road use and generally do not require a license, it's necessary to have one if you're riding on public roads. Always check local regulations.