A search for nonresonant triple Higgs boson (
H
H
H
) production in the final state with six bottom quarks is performed using proton-proton collisions at
s
=
13
TeV
corresponding to an integrated luminosity of
138
fb
−
1
recorded by the CMS experiment. No significant excess of events over the background prediction is seen. Observed (expected) 95% confidence level upper limits on the signal cross section are set at 44 (43) fb, corresponding to 588 (572) times the standard model expectation. The
H
H
H
process is directly sensitive to both the trilinear and quartic Higgs self-couplings. The observed (expected) constraint on the quartic coupling modifier
κ
4
is
−
177
<
κ
4
<
185
(
−
180
<
κ
4
<
190
), assuming
κ
3
=
1
. The corresponding constraint on the trilinear coupling modifier
κ
3
is
−
7.4
<
κ
3
<
12.4
(
−
6.4
<
κ
3
<
11.2
), assuming
κ
4
=
1
. This analysis provides the most stringent constraint to date on nonresonant
H
H
H
production and excludes, for the first time, part of the
(
κ
3
,
κ
4
)
space allowed by the perturbative unitarity bound.