An ultradistribution version of the edge of the wedge theorem will be given in a simpler and easier form than Martineau's theorem, but its proof is given uniquely using quite a different method from others ever known so far. As applications, we give an ultradistribution version of the reflection principle to the unit polydisk for analytic functions and to the unit ball for harmonic functions respectively.