You can physically wear hiking boots for mountain biking, but they are a poor match for the activity and are genuinely risky on technical terrain—acceptable only in narrow, low-consequence situations like a short flat commute or a gentle rail-trail spin, and not advisable for real trail riding.
The core issue is that hiking boots and mountain-bike shoes are engineered around different motions. Hiking boots are built for walking: a relatively stiff, often rockered sole that rolls the foot forward, deep lugs for gripping dirt and rock, a protective upper, and a fit that accommodates thick socks and swelling over hours on foot. Mountain-bike shoes are built for pedaling and controlling a bike: a stiffer or flatter platform interface that spreads pedal force, a sole compound and tread pattern tuned for either flat pedals or clipless cleats, and a snugger fit that keeps the foot from sliding.
Why the mismatch matters
Pedal contact and grip
On flat pedals, the shoes' job is to stay put on the pedal pins. Hiking boots have lug patterns designed to bite into soft ground, not to interlock with pedal pins. The result is often less secure contact than a purpose-built flat-pedal shoe, and the tall, rounded lugs can sit awkwardly on a small platform. On clipless pedals the problem is more fundamental: hiking boots have no cleat recess or mounting, so they cannot clip in at all. Riders sometimes fit cleats to stiff boots as a hack, but without a proper recess the cleat protrudes, making walking clumsy and damaging floors.
Sole stiffness and pedaling efficiency
Pedaling wants a sole stiff enough that the pedal doesn't dig into the arch. Many hiking boots are stiff, which helps here, but the stiffness is distributed for heel-to-toe walking, not for a concentrated pedal contact point. A softer or heavily rockered boot flexes under pedaling load, wasting energy and concentrating pressure. The forward rocker that makes walking comfortable can also feel unstable when you're trying to keep the ball of the foot planted on a pedal.
Ankle support and freedom
This is where opinions split, and the ambiguity is worth naming. Hiking boots offer more ankle coverage than low-cut cycling shoes, which sounds protective. But on a bike, a high, stiff cuff can restrict the ankle articulation you need for balance, and the bulk can catch on crank arms, frame tubes, or the ground. A snug high cuff is not the same as cycling-specific ankle protection, and it doesn't prevent the common injuries of pedal strikes or over-the-bar falls. For most riders the extra height is neutral-to-negative on the bike, even though it's an asset on foot.
Fit, weight, and heat
Hiking boots are generally heavier and bulkier than cycling shoes. On long rides, weight on the foot matters, and a loose or bulky boot can shift on the pedal. The thicker, less breathable construction that suits cold, wet hiking can run hot when you're pedaling hard.
When it can be reasonable
Very gentle, low-speed riding on smooth surfaces where you won't be pushing grip limits. Mixed trips where riding is incidental—for example, a short ride to a trailhead followed by a hike, where carrying a second pair of shoes is impractical. Budget or one-off situations where buying cycling shoes isn't justified for a single casual outing.
Even then, choose the lowest, flattest, stiffest hiking shoe or boot you have, lace it snugly, and prefer flat pedals with real pins over clipless.
When it is clearly a bad idea
Technical descents, jumps, or rock gardens, where secure pedal contact and predictable footing matter most. Clipless setups, which hiking boots simply can't use properly. Long or frequent rides, where inefficiency and discomfort compound. Wet, muddy, or loose conditions, where the wrong tread and fit increase the chance of a foot slipping off the pedal at a bad moment.
A useful distinction
The question conflates two things: can you and should you. Physically, yes—people ride in all kinds of footwear. As a matter of matching equipment to the demands of mountain biking, hiking boots are a compromise that trades away pedal grip, pedaling efficiency, and clipless compatibility for walking comfort you don't need while riding. If you ride seriously or often, dedicated flat-pedal or clipless mountain-bike shoes are the better tool; if you're making a one-time casual trip, a stiff, low hiking shoe on flat pedals is the least-bad version of the compromise.
One clarification: "hiking boots" covers a wide range, from soft low-cut trail shoes to stiff mountaineering boots, and the answer shifts with the type. A flexible low trail shoe behaves very differently from a rigid high mountaineering boot. If you have a specific boot and pedal type in mind, the fit and sole stiffness of that exact pair determine how workable the compromise is.