The two compounds share many similar properties and they both come from cannabis plants (specifical hemp). CBD and CBG are both non-psychoactive cannabinoids (i.e. they do not get you "high") but since the two compounds stem from different chemical precursors, their effects can vary slightly.