An important dynamical question involves how oceanic balanced flows lose energy. Recent numerical and analytical studies suggest topography catalyzes energy exchanges between balanced flows and a variety of unbalanced phenomena, which presumably leads to dissipation. We here develop a general theory of inviscid balanced flow interactions with walls that predicts submesoscale and unbalanced flow generation. Comparison with primitive equation-based numerical experiments supports the basic tenets of the theory.