A group $G$ with subgroups $S$ and $T$ satisfying $G = ST$ and $S\cap T = \{e\}$ gives rise to functions $[t,s] \in S$ and $\\lt t,s\> \in T$ such that $(st)(s't') = (s[t,s'])(\\lt t,s'\>t')$. This notion may be extended to arbitrary semigroups $S$, $T$ with identities, producing the Zappa product of $S$ and $T$, a generalization of direct and semidirect product. Necessary and sufficient conditions are given for a semigroup compactification of a Zappa product $G$ of topological semigroups $S$ and $T$ to be canonically isomorphic to a Zappa product of compactifications of $S$ and $T$. The result is applied to various types of compactifications of $G$, including the weakly almost periodic and almost periodic compactifications.