Levees are not constructed in the event of a flood; they are engineered and built in advance, during ordinary low-water conditions, as permanent or semi-permanent flood-risk-reduction structures. The phrasing in the question hides two different situations—building a levee as ongoing flood infrastructure versus emergency actions taken once a flood is already underway—and mixing them is the main source of confusion.

What a levee actually is and when construction happens

A levee (also spelled levee; in British usage often embankment or dyke) is a raised, elongated earthen or concrete structure running parallel to a river, coast, or other water body, designed to keep floodwater away from the land behind it. Construction requires site investigation, hydrologic and hydraulic modeling, embankment design, foundation treatment, borrow-material sourcing, compaction, slope protection, and often drainage structures such as relief wells and pump stations. None of that is feasible as an emergency response to a flood in progress.

Real levee projects are built on planning horizons of years to decades:

Design and permitting typically take several years, because a levee changes flood behavior on neighboring land and requires environmental review and property agreements. Earthwork and construction for a large ring levee or river levee commonly take multiple construction seasons, since embankments must be built in controlled lifts and are vulnerable to erosion if left unfinished through a flood season. Operation and maintenance continue indefinitely afterward—mowing, burrow repair, settlement monitoring, and inspection—because a levee that is not maintained loses its design reliability.

So the accurate short answer is: levees are constructed before floods, as part of floodplain management, and are then operated, patrolled, and sometimes reinforced when a flood is forecast or occurring.

The genuine emergency case: temporary flood barriers

What people often mean by "levees built during a flood" is actually temporary or emergency flood defenses, which are distinct from permanent levees:

Sandbag walls and earthen berms can be thrown up quickly around individual buildings or low spots, but they are improvised, limited in height and length, and prone to seepage and failure. Temporary flood barriers—demountable metal frames, water-filled tubes, and rapidly deployable panel systems—exist and can be installed in hours to days in specific locations, but they are still pre-manufactured and pre-planned assets, not structures designed on the fly. Emergency levee raises sometimes occur when a permanent levee is forecast to be overtopped: crews add sandbags or temporary parapets on the crest. This is reinforcement of an existing levee, not new levee construction, and it is risky and time-limited.

The distinction matters because emergency barriers usually protect a small area for a short duration and carry much higher failure probability than engineered levees. They are a supplement to, not a substitute for, advance flood infrastructure.

Where levees stop applying—and where the confusion comes from

Levees reduce risk; they do not eliminate it. Three limits are commonly misunderstood:

1: A levee has a design level. It is built for a specified flood magnitude (for example, a particular exceedance probability or water-surface elevation). A larger flood can overtop it, and overtopping can erode the landward slope catastrophically. 2: Levees can raise risk behind them. By preventing frequent small floods, levees encourage development in the protected area; when a rare flood overtops or breaches the levee, damage can be greater than if no levee existed. This is the well-documented "levee effect." 3: Levees can worsen flooding elsewhere. Confining a river between levees can raise water levels upstream and reduce floodplain storage downstream, which is why levee projects require system-level analysis, not isolated construction.

The confusion in the query is also linguistic. "In the event of flooding" can mean "because flooding happens" (a general rationale for building levees in flood-prone areas) or "at the moment a flood occurs" (an emergency response). Only the first reading is accurate for levee construction. Many flood-management agencies frame levees as one component of a broader strategy that also includes floodplain zoning, wetland restoration, reservoirs, and flood warning systems—precisely because levees alone cannot be built reactively.

Practical bottom line

If you are asking whether a community can decide to build a levee because it floods, yes—flood history is a standard justification for planning a levee project, but the structure itself is engineered and built over years ahead of future floods. If you are asking whether a levee can be constructed during a flood, the honest answer is essentially no: at that point, the realistic options are temporary barriers, sandbagging, evacuation, and operating whatever permanent defenses already exist.