Complex sentence: Coming from an obscure family of petty nobility, she was brought up in the house of the great Western-leaning boyarin, Artamon Matveyev, on account of her distant relationship with his wife, the Scottish-descended Mary Hamilton.
Split into simpler sentences: Coming from an obscure family of petty nobility, she was brought up in the house of the great Western-leaning boyarin, Artamon Matveyev. She was distantly related to his wife, the Scottish-descended Mary Hamilton.