The widespread use of online communication has caused a significant increase in the spread of hate speech on social media. However, there are also hate crimes based on caste or immigration status. Despite India's efforts to bring equality among its citizens, numerous crimes occur just based on caste. Immigration-based hostility happens both in India and in developed countries. A shared task was arranged to address this issue in a low-resource language such as Tamil. This paper aims to improve the detection of hate speech and hostility based on caste and immigration status on social media. To achieve this, we investigated several Machine Learning (ML), Deep Learning (DL), and transformer-based models, including M-BERT, XLM-R, and Tamil BERT. We obtained a macro -score of 0.80 using the M-BERT model, which enabled us to rank on the shared task.