Purple blotch (PB) is one of the most destructive foliar diseases of onion and other alliums, caused by a necrotrophic fungal pathogen Alternaria porri. There are no reports on the molecular response of onion to PB infection. To elucidate the response of onion to A. porri infection, we consequently carried out an RNAseq analysis of the resistant (Arka Kalyan; AK) and susceptible (Agrifound rose; AFR) genotype after an artificial infection. Through differential expression analyses between control and pathogen-treated plants, we identified 8,064 upregulated and 248 downregulated genes in AFR, while 832 upregulated and 564 downregulated genes were identified in AK. A further significant reprogramming in the gene expression profile was also demonstrated by a functional annotation analysis. Gene ontology (GO) terms, which are particularly involved in defense responses and signaling, are overrepresented in current analyses such as “oxidoreductase activity,” “chitin catabolic processes,” and “defense response.” Several key plant defense genes were differentially expressed on A. porri infection, which includes pathogenesis-related (PR) proteins, receptor-like kinases, phytohormone signaling, cell-wall integrity, cytochrome P450 monooxygenases, and transcription factors. Some of the genes were exclusively overexpressed in resistant genotype, namely, GABA transporter1, ankyrin repeat domain-containing protein, xyloglucan endotransglucosylase/hydrolase, and PR-5 (thaumatin-like). Antioxidant enzyme activities were observed to be increased after infection in both genotypes but higher activity was found in the resistant genotype, AK. This is the first report of transcriptome profiling in onion in response to PB infection and will serve as a resource for future studies to elucidate the molecular mechanism of onion-A. porri interaction and to improve PB resistance in onions.