What is sampling in terms of hip hop music?

what is sampling in terms of hip hop music.
Give a brief history of how hip hop artist and producers sampled music
Most importantly, how did copyright laws change the music industry within hip hop involving sampling.