The martingale problem is studied from the point of view of moment problem. Using these techniques we can find existence of solution of the martingale problem and hence the existence of weak solution of the corresponding SDE.