Generally, you cannot claim a married person that files a joint return with their spouse as a dependent on your tax return. However, if the person does not file a joint return OR files a return only to claim a refund of income taxes withheld or estimated tax payments, you may be able to claim the individual as a dependent.
See Publication 501 for more details.