Theories of planet formation predict that low-mass stars should rarely host exoplanets with masses exceeding that of Neptune. We used radial velocity observations to detect a Neptune-mass exoplanet orbiting LHS 3154, a star that is nine times less massive than the Sun. The exoplanet's orbital period is 3.7 days, and its minimum mass is 13.2 Earth masses. We used simulations to show that the high planet-to-star mass ratio (>3.5 × 10-4) is not an expected outcome of either the core accretion or gravitational instability theories of planet formation. In the core-accretion simulations, we show that close-in Neptune-mass planets are only formed if the dust mass of the protoplanetary disk is an order of magnitude greater than typically observed around very low-mass stars.