Let A be a domain of the boundary of a strictly pseudoconvex domain Ω of Cn and M a smooth, closed, maximally complex submanifold of A. We find a subdomain à of Ω, depending only on Ω and A, and a complex variety W ⊂ à such that bW ∩A = M . Moreover, a generalization to analytic sets of depth at least 4 is given.