In 1988 Ahmad ran as a Libertarian for the United States Senate even though only Republicans and Democrats were allowed to have their name printed unless they collected tens of thousands of signatures. Ahmad's court challenge to the law failed, but he received 500 write-in votes. Maryland law subsequently allowed the Libertarian Party to collect just 10,000 signatures to obtain ballot status.[1][19][20]