Abstract: The aim of this study is to purpose architecture for middleware for Ad-hoc Social Networks. Many social relationships in a limited geographical area are ad-hoc, e.g., in conference or tourist locations where people meet each other for a specific purpose and may not have access to Internet via Wi-Fi or mobile connection. The Ad-hoc Social Network (ASN) helps to meet temporary location-based social needs by creating a social network where likeminded users participate in social communication connected by an infrastructure-less ad-hoc network. This study presents middleware architecture for ASNs that provides software developers a platform for developing mobile apps that enable social connections. The proposed architecture is a software suite that includes an application layer, transport layer, ad-hoc social layer and ad-hoc communication layer. This study also presents different functions and features required for each layer in ASN.