Gibbs sampling is a form of Markov Chain Monte Carlo (MCMC), which is used to obtain a sequence of random samples from a joint probability distribution of two or more random variables.
gibbs sampling is used when direct sampling is prohibitive.