We report the first direct detection of a strong, 5 kG magnetic field on the surface of an active brown dwarf. LSR J1835+3259 is an M8.5 dwarf exhibiting transient radio and optical emission bursts modulated by fast rotation. We have detected the surface magnetic field as circularly polarized signatures in the 819 nm sodium lines when an active emission region faced the Earth. Modeling Stokes profiles of these lines reveals the effective temperature of 2800 K and log gravity acceleration of 4.5. These parameters place LSR J1835+3259 on evolutionary tracks as a young brown dwarf with the mass of 55$pm$4 M$_{rm J}$ and age of 22$pm$4 Myr. Its magnetic field is at least 5.1 kG and covers at least 11% of the visible hemisphere. The active region topology recovered using line profile