In this paper, we consolidate into one two separate problems - dependent random variables with independent subsets and construction of a joint distribution with given marginals. Let N = {1,2,3,...} and X = {Xn; n ∊ N} be a sequence of random variables with nondegenerate one-dimensional marginal distributions {Fn; n ∊ N}. An example is constructed to show that there exists a sequence of random variables Y = {Yn; n ∊ N} such that the components of a subset of Y are independent if and only if its size is ≦ k, where k ≧ 2 is a prefixed integer. Furthermore, the one-dimensional marginal distributions of Y are those of X.